import request from '@/utils/request'

// 查询产品服务配置列表
export function listServicedetails(query) {
  return request({
    url: '/tianqi/servicedetails/list',
    method: 'get',
    params: query
  })
}

// 查询产品服务配置详细
export function getServicedetails(id) {
  return request({
    url: '/tianqi/servicedetails/' + id,
    method: 'get'
  })
}

// 新增产品服务配置
export function addServicedetails(data) {
  return request({
    url: '/tianqi/servicedetails',
    method: 'post',
    data: data
  })
}

// 修改产品服务配置
export function updateServicedetails(data) {
  return request({
    url: '/tianqi/servicedetails',
    method: 'put',
    data: data
  })
}

// 删除产品服务配置
export function delServicedetails(id) {
  return request({
    url: '/tianqi/servicedetails/' + id,
    method: 'delete'
  })
}
